home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
LIFE_SIM
/
VERSION_
/
MAINEVTB.C
< prev
Wrap
Text File
|
1992-03-12
|
619b
|
35 lines
/* Cell Proj 1.0 */
#include "MacProto.h"
#include "Cell_Proto.h"
#include "Cell_Definitions.h"
#include "Cell_Variables.h"
HandleEvent()
{
char theChar;
switch ( gTheEvent.what )
{
case nullEvent:
if ( FrontWindow() == gCellWindow )
{
DoCellularAutomata();
}
case mouseDown:
HandleMouseDown();
break;
case keyDown:
case autoKey:
theChar = gTheEvent.message & charCodeMask;
if (( gTheEvent.modifiers & cmdKey ) != 0 )
HandleMenuChoice( MenuKey( theChar ));
break;
case updateEvt:
HandleUpdateEvt();
break;
case activateEvt:
HandleActivateEvt();
break;
}
}